package com.bear.newsset.holder;

import androidx.annotation.NonNull;
import android.view.View;
import android.widget.TextView;

import com.bear.newsset.adapter.BaseViewHolder;
import com.bear.newsset.widget.item.NewsItemZeroImgView;

public class NewsZeroImgHolder extends BaseViewHolder {
    private TextView title;
    private TextView posterScreenName;
    public NewsZeroImgHolder(@NonNull View itemView) {
        super(itemView);
//        NewsItemZeroImgView v = (NewsItemZeroImgView) itemView;
        NewsItemZeroImgView v = itemView.findViewById(
                NewsItemZeroImgView.NEWS_ITEM_ZERO_IMG_VIEW_ID
        );
        title = v.getTitleView();
        posterScreenName = v.getPosterScreenNameView();
    }

    public TextView getTitle() {
        return title;
    }

    public TextView getPosterScreenName() {
        return posterScreenName;
    }
}
